package com.bezdelnick.forum.dao;

import com.bezdelnick.forum.domain.Subtype;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: Bezdelnick
 * Date: 18.07.12
 * Time: 12:32
 * To change this template use File | Settings | File Templates.
 */
public interface ISubtypeDao {
    List<Subtype> loadSubtypes();
    Subtype getSubtypeById(long id);
    Subtype getSubtypeByName(String name);
    List<Subtype> loadSubtypesByTypeId(long id);
    boolean insertSubtype(Subtype subtype);
    boolean updateSubtype(Subtype subtype);
    boolean deleteSubtype(long id);
}
